#ifndef __PICASA_UI_H__
#define __PICASA_UI_H__

#include "../header/picasa.h"

#include <QStringList>
#include <QFileInfoList>

#include <QObject>
class PicasaUI : public QObject
{
	Q_OBJECT

	QStringList args;
	QFileInfoList fileList;
	
	QString AlbumTitle;
	QString Directory;
	QString UserName;
	QString Password;
	
	QString CurrentAction;
	public:
		Picasa pikaska;
		PicasaUI();
		PicasaUI( const QStringList& args );
		int GetExistingAlbums();
		void Auth( const QString& UserName, const QString& Password );
		void PostImages( const QString& Directory );
		void PostNextImage();
		static bool AreNParameters( const QStringList& args, int n );
	private slots:
		void slGetExistingAlbums( const StringVector& vector );
		void slOnAuth( const StringMap& map );
		void slPostNextImage();
		void slOnError(  int ErrorId, const QString& ErrorString );
};
#endif
